import { request } from '../config.js'


// 快递管理列表
export const getexpresslist = (params) => {
  return request.get({
    url: '/express/index',
    params
  })
}


// 快递管理添加
export const getexpressadd = (params) => {
  return request.postjson({
    url: '/express/add',
    data: JSON.stringify(params)
  })
}


// 快递管理编辑
export const getexpressedit = (params) => {
  return request.postjson({
    url: '/express/update',
    data: JSON.stringify(params)
  })
}


// 快递管理删除
export const getexpressdel = (params) => {
  return request.get({
    url: '/express/delete/' + params.id,
  })
}






// 门店管理列表
export const getstorelist = (params) => {
  return request.get({
    url: '/store/index',
    params
  })
}


// 门店管理添加
export const getstoreadd = (params) => {
  return request.postjson({
    url: '/store/add',
    data: JSON.stringify(params)
  })
}


// 门店管理编辑
export const getstoreedit = (params) => {
  return request.postjson({
    url: '/store/update',
    data: JSON.stringify(params)
  })
}


// 门店管理删除
export const getstoredel = (params) => {
  return request.get({
    url: '/store/delete/' + params.id,
  })
}
